/*
* @Author: wanghongfucoder
* @Date:   2017-03-16 10:20:22
* @Last Modified by:   wanghongfucoder
* @Last Modified time: 2017-03-16 10:25:31
*/


import java.util.ArrayList;
import java.util.List;


public class CareTaker {
	
	private List<Memento> mementoList=new ArrayList<Memento>();

	public void add(Memento state){
		mementoList.add(state);
	}

	public  Memento get(int index){
		return mementoList.get(index);
	}
}